<?php
/**
 * Created by swagger_zxd.
 * User: zxd
 * Date: 2017/11/30
 * Time: 10:48
 */

namespace App\Http\Controllers\Test;


use App\Http\Controllers\Controller;
use App\Jobs\SendEmail;
use App\Models\Admin\AdminUser;



class MessageController extends Controller
{
    public function index()
    {
        $datas=AdminUser::all();
        foreach($datas as $data){
            //echo $data->name.":".$data->email."<br>";
            dispatch(new SendEmail($data->name,$data->email));
        }
        //dd($datas);

    }

}